package com.turing.draw.client.procedure;

import com.turing.common.response.ResponseVO;
import com.turing.draw.model.vo.in.TaskRecordVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient( name = "procedure", path = "process" )
public interface ProcedureInnerService {

    @PostMapping("/createTaskRecords")
    ResponseVO<Object> createTaskRecords(@RequestBody List<TaskRecordVo> taskRecordVoList );

    @PostMapping("/taskFailed")
    ResponseVO<Boolean> taskFailed(@RequestParam("taskSn") String taskSn,@RequestParam("errorMessage") String errorMessage);

    @PostMapping("/OCRTaskFinished")
    ResponseVO<Boolean> OCRTaskFinished(@RequestParam("taskSn") String taskSn);

    @PostMapping("/preTaskFinished")
    ResponseVO<Boolean> preTaskFinished(@RequestParam("taskSn") String taskSn);

    @PostMapping("/forecastFinished")
    ResponseVO<Boolean> forecastFinished(@RequestParam("taskSn") String taskSn);

    @PostMapping("finishReview")
    ResponseVO<Boolean> finishReview(@RequestParam("taskSn") String taskSn);

}
